//package com.gyh.thymeleaf.config;
//
//import com.gyh.thymeleaf.interceptor.LoginInterceptor;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * @author gyhstart
// * @create 2020/6/25 - 20:27
// **/
//@Configuration
//public class LoginConfig implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
////        //注册拦截器
////        InterceptorRegistration registration = registry.addInterceptor(new LoginInterceptor());
////        //拦截所有的路径信息
////        registration.addPathPatterns("/**");
////        registration.excludePathPatterns(
////                "swagger-ui.html",
////                "/api/login",
////                "/api/verifyCode",
////                "/index.html",
////                "/login.html",
////                "/dashboard",
////                "/css/**",
////                "/fonts/**",
////                "/images/**",
////                "/js/**",
////                "/**/*.html",
////                "/**/*.js",
////                "/**/*.css",
////                "/**/*.woff",
////                "/**/*.ttf"
////        );
//    }
//}
